{extend name="layout/common_layout" /}
{block name="body"}
<!--tab标签-->
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class=""><a href="{:url('admin/user/index')}">用户管理</a></li>
        <li class=""><a>直推用户</a></li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <hr>
            <div class="layui-inline">
                <label class="layui-form-label">直推用户</label>
            </div>
            {notempty name = 'list'}
            <table class="layui-table">
                <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>用户</th>
                        <th>昨日收益（美金）</th>
                        <th>回报利润（美金）</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody>
                {foreach name="list" item="vo"}
                <tr>
                    <td>{$vo.u_id}</td>
                    <td style="width: 20%;">{$vo.u_email}</td>
                    <td  style="color: red">{$vo.us_yesterday_earnings}</td>
                    <td  style="color: green">{$vo.user_two_earnings}</td>
                    <td>{$vo.u_created_time}</td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {else/}
            <table class="layui-table">
                <thead>
                <tr>
                    <th>暂无数据</th>
                </tr>
                </thead>
            </table>
            {/notempty}
            <div class="layui-inline">
                <label class="layui-form-label">三级用户</label>
            </div>
            {notempty name = 'lista'}
            <table class="layui-table">
                <thead>
                <tr>
                    <th style="width: 30px;">ID</th>
                    <th>用户</th>
                    <th>昨日收益（美金）</th>
                    <th>回报利润（美金）</th>
                    <th>创建时间</th>
                </tr>
                </thead>
                <tbody>
                {foreach name="lista" item="vo"}
                <tr>
                    <td>{$vo.u_id}</td>
                    <td style="width: 20%;">{$vo.u_email}</td>
                    <td style="color: red">{$vo.us_yesterday_earnings}</td>
                    <td style="color: green;">{$vo.user_two_earnings}</td>
                    <td>{$vo.u_created_time}</td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {else/}
            <table class="layui-table">
                <thead>
                <tr>
                    <th>暂无数据</th>
                </tr>
                </thead>
            </table>
            {/notempty}
            <div class="layui-inline">
                <label class="layui-form-label">四级用户</label>
            </div>
            {notempty name = 'listb'}
            <table class="layui-table">
                <thead>
                <tr>
                    <th style="width: 30px;">ID</th>
                    <th>用户</th>
                    <th>昨日收益（美金）</th>
                    <th>回报利润（美金）</th>
                    <th>创建时间</th>
                </tr>
                </thead>
                <tbody>
                {foreach name="listb" item="vo"}
                <tr>
                    <td>{$vo.u_id}</td>
                    <td  style="width: 20%;">{$vo.u_email}</td>
                    <td  style="color: red">{$vo.us_yesterday_earnings}</td>
                    <td  style="color: green">{$vo.user_two_earnings}</td>
                    <td>{$vo.u_created_time}</td>
                </tr>
                {/foreach}
                </tbody>
            </table>
            {else/}
            <table class="layui-table">
                <thead>
                <tr>
                    <th>暂无数据</th>
                </tr>
                </thead>
            </table>
            {/notempty}
        </div>
    </div>
</div>
{/block}
